window.onload = function() {
    initDataGrid();
}
function initDataGrid() {
    $('#dg').datagrid({
        singleSelect : false,
        fitColumns : false,
        pagination : true,
        pageSize : 10,
        fit : true,
        striped : true,
        rownumbers : true,
        pageList : [ 10, 20, 30 ,200  ],
        columns:[[
            {field:'name',title:'Name',width:100},
            {field:'price',title:'Price',width:100,align:'right'}
        ]]
    });
}
function find(){
    var opts = $('#dg').datagrid("options");
    if(null == opts.url||""==opts.url){
        opts.url='/pmsProduct/inittable';
    };
    $('#dg').datagrid('reload', {

    });
    initDataGrid();
}
